package com.hjm.project.merchantInfo.merchantInfo.util;

import com.hjm.common.exception.BusinessException;
import com.hjm.project.agentInfo.agentPolicy.domain.AgentPolicy;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;


@Data
public class MerchantCommon {
    private String merno;                //代理商编号
    private Integer posType;                //产品类型 0 传统 4 电签
    /********刷卡借记卡*************/
    @Digits(integer = 1,fraction = 4,message = "刷卡借记卡结算格式错误")
    private BigDecimal s0_shuakaJiejika;
    private Integer s0_shuakaJiejikaFd;
    @Min(value = 0,message = "刷卡借记卡附加手续费最低0元")
    @Max(value = 3,message = "刷卡借记卡附加手续费最高3元")
    private Integer s0_shuakaJiejikaFj;

    /********刷卡贷记卡*************/
    @Digits(integer = 1,fraction = 4,message = "刷卡贷记卡格式错误")
    private BigDecimal s0_shuakaDaijika;
    @Min(value = 0,message = "刷卡贷记卡附加手续费最低0元")
    @Max(value = 3,message = "刷卡贷记卡附加手续费最高3元")
    private Integer s0_shuakaDaijikaFj;

    /********银联二维码借记卡*************/
    @Digits(integer = 1,fraction = 4,message = "银联二维码借记卡结算格式错误")
    private BigDecimal s0_qrJiejika;
    private Integer s0_qrJiejikaFd;
    @Min(value = 0,message = "银联二维码借记卡附加手续费最低0元")
    @Max(value = 3,message = "银联二维码借记卡附加手续费最高5元")
    private Integer s0_qrJiejikaFj;

    /********银联二维码贷记卡*************/
    @Digits(integer = 1,fraction = 4,message = "银联二维码贷记卡格式错误")
    private BigDecimal s0_qrDaijika;
    @Min(value = 0,message = "银联二维码贷记卡附加手续费最低0元")
    @Max(value = 3,message = "银联二维码贷记卡附加手续费最高5元")
    private Integer s0_qrDaijikaFj;


    /********云闪付*************/
    @Digits(integer = 1,fraction = 4,message = "云闪付格式错误")
    private BigDecimal yunshanfu0;
    @Min(value = 0,message = "云闪付附加手续费最低0元")
    @Max(value = 3,message = "云闪付附加手续费最高5元")
    private Integer yunshanfu0Fj;

    /********微信*************/
    @Digits(integer = 1,fraction = 4,message = "微信格式错误")
    private BigDecimal saoma0Wx;
    @Min(value = 0,message = "微信附加手续费最低0元")
    @Max(value = 3,message = "微信附加手续费最高5元")
    private Integer saoma0FjWx;


    /********支付宝*************/
    @Digits(integer = 1,fraction = 4,message = "支付宝格式错误")
    private BigDecimal saoma0Zfb;
    @Min(value = 0,message = "支付宝附加手续费最低0元")
    @Max(value = 3,message = "支付宝附加手续费最高5元")
    private Integer saoma0FjZfb;





}
